export function initEvent(vm){
    const $options = vm.$options;
    const listeners = $options.listeners;
    if (!listeners)return;
    for (let event in listeners){
        vm.$on(event, listeners[event]);
    }
}